import  {addDbCmpnt } from 'xcore/data';
import $cmpnt from "xcore/cmpnt"

export function loadDbCmpnts() {
    addDbCmpnt($cmpnt.find("Input"), "usr-input", "varchar", "text", "longtext")
    addDbCmpnt($cmpnt.find("Password"), "usr-input", "varchar", "text", "longtext")
    addDbCmpnt($cmpnt.find("InputApp"), "usr-input", "varchar", "text", "longtext")
    addDbCmpnt($cmpnt.find("InputPre"), "usr-input", "varchar", "text", "longtext")
    addDbCmpnt($cmpnt.find("TextArea"), "usr-input", "varchar", "text", "longtext")
    addDbCmpnt($cmpnt.find("IconSelect"), "usr-input", "varchar", "text", "longtext")
    addDbCmpnt($cmpnt.find("ColorSelect"), "usr-input", "varchar", "text", "longtext")
   

    addDbCmpnt($cmpnt.find("Number"), "usr-input", "tinyint", "int", "bigint", "decimal")
    addDbCmpnt($cmpnt.find("Switch"), "usr-input", "tinyint", "int", "bigint", "decimal")

    addDbCmpnt($cmpnt.find("DatePicker"), "usr-input", "timestamp", "date", "datetime")
    addDbCmpnt($cmpnt.find("DateRange"), "usr-input", "timestamp", "date", "datetime")
    addDbCmpnt($cmpnt.find("TimePicker"), "usr-input", "time")
    addDbCmpnt($cmpnt.find("TimeRange"), "usr-input", "time")
    addDbCmpnt($cmpnt.find("TimeSelect"), "usr-input", "time")


    addDbCmpnt($cmpnt.find("Select"), "usr-select", "tinyint", "int", "varchar")
    addDbCmpnt($cmpnt.find("CheckboxGroup"), "usr-select", "tinyint", "int", "varchar")
    addDbCmpnt($cmpnt.find("RadioGroup"), "usr-select", "tinyint", "int", "varchar")
    addDbCmpnt($cmpnt.find("Switch"), "usr-select", "tinyint", "int", "varchar")
    addDbCmpnt($cmpnt.find("Tabs"), "usr-select", "tinyint", "int", "varchar")
}

